/* This file is currently associated to an HTML file of the same name and is drawing content from it.  Until the files are disassociated, you will not be able to move, delete, rename, or make any other changes to this file. */

function DisplayTemplate_d8bf2a3b8a1648bebaaa74298e5e7fff(ctx) {
  var ms_outHtml=[];
  var cachePreviousTemplateData = ctx['DisplayTemplateData'];
  ctx['DisplayTemplateData'] = new Object();
  DisplayTemplate_d8bf2a3b8a1648bebaaa74298e5e7fff.DisplayTemplateData = ctx['DisplayTemplateData'];

  ctx['DisplayTemplateData']['TemplateUrl']='~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_Carousel.js';
  ctx['DisplayTemplateData']['TemplateType']='Control';
  ctx['DisplayTemplateData']['TargetControlType']=['SearchResults'];
  this.DisplayTemplateData = ctx['DisplayTemplateData'];

ms_outHtml.push('',''
);        
        // Don't remove the following line
        ctx.ListDataJSONGroupsKey = "ResultTables";

        // Set the Group Display Template
        ctx.ClientControl.set_groupTemplateId('~sitecollection/_catalogs/masterpage/$clientNameWithoutSpaces$/DisplayTemplates/Group_SearchResults_NoMarkup.js');
        
        // Flag the first item as active
        ctx.OnPostRender = function() {
            $("div.item").first().addClass("active");
        };
ms_outHtml.push(''
,'        <div id="search-results-carousel" class="carousel slide" data-ride="carousel">'
,' '
,'            <div class="carousel-inner"> '
,'                ', ctx.RenderGroups(ctx) ,' '
,'            </div>'
,' '
); 
        // Use the Paging checkbox on the web part control to decide whether or not to show the Prev/Next carousel controls
        if(ctx.ClientControl.get_showPaging()){
ms_outHtml.push(''
,'            <!-- Controls -->'
,'            <a class="left carousel-control" href="#search-results-carousel" data-slide="prev">'
,'                <span class="glyphicon glyphicon-chevron-left"></span>'
,'            </a>'
,'            <a class="right carousel-control" href="#search-results-carousel" data-slide="next">'
,'                <span class="glyphicon glyphicon-chevron-right"></span>'
,'            </a> '
); 
        }
ms_outHtml.push(''
,'        </div>'
,''
,'    '
);

  ctx['DisplayTemplateData'] = cachePreviousTemplateData;
  return ms_outHtml.join('');
}
function RegisterTemplate_d8bf2a3b8a1648bebaaa74298e5e7fff() {

if ("undefined" != typeof (Srch) &&"undefined" != typeof (Srch.U) &&typeof(Srch.U.registerRenderTemplateByName) == "function") {
  Srch.U.registerRenderTemplateByName("Control_SearchResults_Carousel", DisplayTemplate_d8bf2a3b8a1648bebaaa74298e5e7fff);
}

if ("undefined" != typeof (Srch) &&"undefined" != typeof (Srch.U) &&typeof(Srch.U.registerRenderTemplateByName) == "function") {
  Srch.U.registerRenderTemplateByName("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_Carousel.js", DisplayTemplate_d8bf2a3b8a1648bebaaa74298e5e7fff);
}
//
        $includeScript("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_Carousel.js", "~sitecollection/_catalogs/masterpage/$clientNameWithoutSpaces$/DisplayTemplates/Group_SearchResults_NoMarkup.js");
    //
}
RegisterTemplate_d8bf2a3b8a1648bebaaa74298e5e7fff();
if (typeof(RegisterModuleInit) == "function" && typeof(Srch.U.replaceUrlTokens) == "function") {
  RegisterModuleInit(Srch.U.replaceUrlTokens("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_Carousel.js"), RegisterTemplate_d8bf2a3b8a1648bebaaa74298e5e7fff);
}